﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimCMS.Model;
using SimCMS.Repository;
namespace SimCMS.Manager
{
    public class SimchildobjManager : ISimchildobjManager
    {
        public IRepository<Simchildobj> SimchildobjRepository { get; set; }

        public object Save(Simchildobj entity)
        {
            return this.SimchildobjRepository.Save(entity);
        }

        public void Delete(object id)
        {
            this.SimchildobjRepository.Delete(this.Get(id));
        }

        public Simchildobj Get(object id)
        {
            return this.SimchildobjRepository.Get(id);
        }

        public IList<Simchildobj> LoadAll()
        {
            return this.SimchildobjRepository.LoadAll();
        }

        public void Update(Simchildobj entity)
        {
            this.SimchildobjRepository.Update(entity);
        }
    }
}
